﻿
using AutoMapper;
using BCCommon;
using BCCommon.Enums;
using BCDto.Common.Cooperation.WebsiteCooperation;
using BCDto.Common.Cooperation.WebsiteCooperationFollowUp;
using BCEntity.Common.Cooperation.WebsiteCooperation;
using BCEntity.Common.Cooperation.WebsiteCooperationFollowUp;
using BCService.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BCService.MapperProfiles.Common.Cooperation
{
    public class WebsiteCooperationProfile : Profile
    {
        public WebsiteCooperationProfile()
        {

            //官网合作留言
            CreateMap<WebsiteCooperationDto, WebsiteCooperationEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<WebsiteCooperationRequestDto, WebsiteCooperationPutDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<WebsiteCooperationRequestDto, WebsiteCooperationEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<WebsiteCooperationPutDto, WebsiteCooperationEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<WebsiteCooperationEntity, WebsiteCooperationDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();

            //官网合作留言跟进记录
            CreateMap<WebsiteCooperationFollowUpDto, WebsiteCooperationFollowUpEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<WebsiteCooperationFollowUpRequestDto, WebsiteCooperationFollowUpEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<WebsiteCooperationFollowUpEntity, WebsiteCooperationFollowUpDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
        }
    }
}